<?php
    header("content-type:text/html;charset=utf-8");
    $config = include_once('../../public/config/config.php');
    include_once('../../public/func/db.php');
    $table = 'reply';
    $res = delete($config,$table,$_GET['id']);
    if(empty($res)){
        echo "<script>alert('删除成功');window.location.href='reply.php'</script>";
    }else{
        echo "<script>alert('删除失败');window.location.href='reply.php'</script>";
    }
?>